package com.uw.scenic.dto;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 *
 * 用于案例展示
 * 用户传输对象
 */
@ApiModel(value = "神经病啊",description = "从客户端，由用户传入的数据，封装在此entity中")
public class UserDTO implements Serializable {
    @ApiModelProperty(value = "id",name = "id",example ="id",required =true)
    private Integer id;

    @ApiModelProperty(value = "用户名",name = "name",example ="张三",required =true)
    private String name;

    @ApiModelProperty(value = "密码",name = "password",example ="123456",required =true)
    private String password;

    @ApiModelProperty(value = "确认密码",name = "age",example ="123456",required =false)
    private Integer age;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
